import request from '@/utils/request'

// 查询质检项目列表
export function listProject(query) {
  return request({
    url: '/yyj/qc/project/list',
    method: 'get',
    params: query
  })
}

// 查询质检项目详细
export function getProject(qualityCode) {
  return request({
    url: '/yyj/qc/project/' + qualityCode,
    method: 'get'
  })
}

// 新增质检项目
export function addProject(data) {
  return request({
    url: '/yyj/qc/project',
    method: 'post',
    data: data
  })
}

// 修改质检项目
export function updateProject(data) {
  return request({
    url: '/yyj/qc/project',
    method: 'put',
    data: data
  })
}

// 删除质检项目
export function delProject(qualityCode) {
  return request({
    url: '/yyj/qc/project/' + qualityCode,
    method: 'delete'
  })
}
